#pragma once 
#include <iostream>
#include <string>
#include <strings.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>

namespace ns_protocol
{
  //request
  struct Request
  {
    int x;
    int y;
    char op;

    Request(): x(0), y(0), op('+'){}
  };

  //response
  struct Response
  {
    int code;   //状态码
    int result; 
    
    Response(): code(0), result(0){}
  };
}
